<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//ES"	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
   <link rel="stylesheet" href="css/reset.css" type="text/css" />

   <SCRIPT type='text/javascript' src='../../config/domain.js'></SCRIPT><!-- DOMAIN -->

	<script type='text/javascript' src='../../drDesktop/js/DrDesktop_resources.js'></script>
	<script type='text/javascript' src='../../drDesktop/js/jquery.js'></script>
   <style>


      body {background:url(css/images/backgr.gif) repeat-x #91a1d2 }

      body, input { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 11px; }
      

      .formCanvasPositioner{
         width:521px; top:98px; 
         position:relative; margin-left:auto; margin-right:auto;  
      }


      .formCanvas{
         padding-left:19px; padding-right:19px; padding-top:34px; padding-bottom:18px;
         position:absolute;
      }
      .leftCanvas{
         left:-19px;width:19px; background: url(css/images/leftCanvas.gif) repeat-y;
         height:100%;position:absolute;top:0px;
      }
      .rightCanvas{
         right:-19px;width:19px; background: url(css/images/rightCanvas.gif) repeat-y;
         height:100%;position:absolute;top:0px;
      }
      .topCanvasContainer{
         height: 34px;
         width:100%; position:absolute; left:0px; top:0px;
      }
      .bottomCanvasContainer{
         height: 18px;
         width:100%; position:absolute; left:0px; bottom:0px;
      }
      .topCanvas{
         margin-left:19px; margin-right:19px; background-color: transparent;
         height: 100%; position:relative; 
      }
      .bottomCanvas{
         margin-left:19px; margin-right:19px; background: url(css/images/bottomCanvas.gif) repeat-x;
         height: 100%; position:relative; 
      }
      .topLeftCanvas{
         width:19px; height: 34px;  background: url(css/images/topLeftCanvas.gif);
         position:absolute; left:0px; top:0px;
      }
      .bottomLeftCanvas{
         width:19px; height: 18px;  background: url(css/images/bottomLeftCanvas.gif);
         position:absolute; left:0px; bottom:0px;
      }
      .topRightCanvas{
         width:19px; height: 34px; background: url(css/images/topRightCanvas.gif);
         position:absolute; right:0px; top:0px;
      }
      .bottomRightCanvas{
         width:19px; height: 18px;  background: url(css/images/bottomRightCanvas.gif);
         position:absolute; right:0px; bottom:0px;
      }

      
      .topIcon{
         width:35px; height: 34px;  background: url(css/images/topIcon.gif);
         position:absolute; left:0px; top:0px;
      }
      .topCanvasBg{
         width:448px; height:34px; position:relative; left:35px; 
      }


      .formContainer{
         width:483px; background-color:white; position:relative;
      }

      .titleLabel{ font-weight:bold; margin-left:10px; padding-top:14px;}
      .uploadFieldCont{ position:relative; margin-left:10px; margin-top:12px; padding-bottom:9px; height:16px; padding-top:4px;}
      .uploadFieldCont input{  height:20px; border:1px solid #7b9cbd }
      .uploadField{width:340px; padding-top:2px; position: relative;	text-align: right;}
      .uploadButton{width:56px; margin-left:2px;}
      .rightFieldBlock{ position:absolute; top:0px; right:8px; }

   </style>
   <script>
      $(function(){
         $("#submitBtn").attr("value",drResources.get({bundle:"core",key:"drUploadDapWizard.txt1_3"}))

         $("#submitBtn").click(submitBtn_onclick)
      })

      function submitBtn_onclick(){
         var valor="" + $("#files").val()
         if (valor.toLowerCase().lastIndexOf(".dap")==valor.length - 4){
            $("#f1").get(0).submit()
         }else{
            alert( drResources.get({bundle:"core",key:"drUploadDapWizard.txt10"}) )
         }
      }

   </script>
</head>
<body>
	<FORM action="jsp/UploadApplicationWizard.jsp" enctype="multipart/form-data" method="post" id="f1">
	 <!--<script>document.write(drResources.get({bundle:"core",key:"drUploadDapWizard.txt1"}))</script>-->
      <div class="formCanvasPositioner">
         <div class="formCanvas">
            <div class="formContainer">
               <div class="leftCanvas"></div>
               <div class="rightCanvas"></div>
               <div class="titleLabel"><script>document.write(drResources.get({bundle:"core",key:"drUploadDapWizard.txt1"}))</script></div><!--Por favor, elija el fichero DAP a instalar:-->
               <div class="uploadFieldCont">
                  <script>document.write(drResources.get({bundle:"core",key:"drUploadDapWizard.txt1_2"}))</script><!--Fichero:-->
                  <div class="rightFieldBlock">
                     <INPUT type="file" id="files" name="files" class="uploadField"/><INPUT id="submitBtn" type="button" value="OK" class="uploadButton"/>
                     <!--<INPUT id="submitBtn" type="submit" value="OK" class="uploadButton"/>--><!-- OK -->
                  </div>
               </div>
            </div>
            <div class="topCanvasContainer">
               <div class="topCanvas">
                  <div class="topIcon"></div>
                  <img class="topCanvasBg" src="css/images/topCanvas.gif"></img>
               </div>
            </div>
            <div class="bottomCanvasContainer">
               <div class="bottomCanvas"></div>
            </div>
            <div class="topLeftCanvas"></div>
            <div class="bottomLeftCanvas"></div>
            <div class="topRightCanvas"></div>
            <div class="bottomRightCanvas"></div>
         </div>
      </div>
   </FORM>
</body>
</html>
